package org.example;

import org.example.dataset.Ceph;
import org.example.dataset.DataHandler;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.web.servlet.HandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.ByteArrayOutputStream;
import java.util.HashMap;
import java.util.List;

@SpringBootApplication(exclude={DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
public class Main implements InitializingBean {
    @Autowired
    Ceph ceph;
    public static List<ByteArrayOutputStream> list;

    @Override
    public void afterPropertiesSet() throws Exception {
         list = ceph.getList();
    }

    public static void main(String[] args) {
        SpringApplication.run(Main.class, args);

    }
}